package com.panfeng.xcloud.dao.member.mapper;

import com.panfeng.xcloud.dao.member.entity.ImRedPacketDetail;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface ImRedPacketDetailMapper{

    void insert(@Param("tableName") String tableName,@Param("imRedPacketDetail") ImRedPacketDetail imRedPacketDetail);

    void batchAdd(@Param("tableName") String tableName,@Param("imRedPacketDetailList") List<ImRedPacketDetail> imRedPacketDetailList);

    BigDecimal findGrabedAmount(@Param("tableName") String tableName, @Param("userId") String userId, @Param("redPacketId")Long redPacketId);

    Integer findGrabedCount(@Param("tableName")String tableName, @Param("redPacketId")Long redPacketId);

}
